Programming with QuickTime VR

| Previous | Chapter contents | Chapter top | Section top | Next |

QTVRSetViewRate

You can use the QTVRSetViewRate function to set the view rate of an object node.

OSErr QTVRSetViewRate (QTVRInstance qtvr, float rate);
qtvr
An instance of a QuickTime VR movie.
rate
The desired view rate of the specified movie. A view rate is a floating-point value in the range from -100.0 to +100.0. Positive values indicate forward rates, and negative values indicate reverse rates. Set this parameter to 0 to stop the movie.
function result
A result code.

DESCRIPTION

The QTVRSetViewRate function sets the view rate of the object node specified by the qtvr parameter to the rate specified by the rate parameter. A node's view rate might be modified by the current animation settings.

If the value specified in the rate parameter lies outside the valid range, QTVRSetViewRate returns the result code constraintReachedErr and sets the view rate to the nearest constraint.

SPECIAL CONSIDERATIONS

QTVRSetViewRate is valid only for object nodes.

SEE ALSO

Use QTVRGetViewRate (link) to get the current view rate of an object node.


© 1997 Apple Computer, Inc.

| Previous | Chapter contents | Chapter top | Section top | Next |